package com.ld.control.business.record.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ld.control.business.record.model.MessageNoticeRecordModel;
import com.ld.control.business.record.vo.resp.MessageNoticeRecordRespVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 任务报错后的记录和处理 Mapper 接口
 * </p>
 *
 * @author wangfeng
 * @since 2024-07-15
 */
public interface MessageNoticeRecordMapper extends BaseMapper<MessageNoticeRecordModel> {

    IPage<MessageNoticeRecordRespVo> selectPageList(IPage<MessageNoticeRecordRespVo> iPage, @Param("status") Integer status, @Param("type") Integer type);

    /**
     * 修改所有状态为已读
     * @param updateBy
     * @return
     */
    int updateStatusToRead(@Param("updateBy") Long updateBy);
}
